<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">

</head>

<body>
<?php
include_once '../Login/databaseconnection.php';

if(!loggedin())
{
	require_once '../index.php';
}
   
   else
   {

	 $T_NIC_Number=$_POST['T_NIC_Number'];
 mysql_query("DELETE FROM teacher WHERE T_NIC_Number='$T_NIC_Number'");
	if($del)
  {
$_SESSION['error']="Your record is successfully deleted!";
 //require_once 'Programmes.php';
  }

  if(!$del)
  {
 $_SESSION['error']="Sorry unable to delete your record!";
  //require_once 'DelPro.php';

  } 
   }
  ?>
</body>
</html>